package ltd.yangyh.config;

import ltd.yangyh.service.Impl.UserServiceImpl;
import ltd.yangyh.service.UserService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan(basePackages = "ltd.yangyh")
public class SpringConfig {
    @Bean
    public UserService userService(){
        return new UserServiceImpl();
    }
}
